#!/bin/sh

kernel=$1

# GDB Debug
#debug="-S -s"

#smp="-smp 4"

qemu-system-arm -nographic -M virt -m 128 \
        -kernel $kernel \
        -device virtio-net-pci,netdev=lan -device virtio-net-pci,netdev=wan \
        -netdev user,id=lan -netdev user,id=wan,hostfwd=tcp::5555-:22 \
        $debug \
        $smp
